package com.javaee.term.data;

import lombok.Data;

import javax.annotation.Generated;
import java.util.List;
import java.util.stream.Collectors;

/**
 * author 陈伯瑞
 * date 2019/12/22 0022 18:52
 * version 1.0
 **/
@Data
public class AnalyOver {
    private List<String> title;
    private List<ConverAnaly> data;

    public AnalyOver(List<ConverAnaly> data) {
        this.data = data;
        this.title = data.stream().map(e->e.getName()).collect(Collectors.toList());
    }
}
